#include <TextureManager.hpp>
#include <GameEngine.hpp>
#include <iostream>

EE::TextureManager EE::GameEngine::textureManager;

namespace EE
{
	sf::Texture *TextureManager::LoadFromDisk(const std::string &id)
	{
		sf::Texture *tex = new sf::Texture();
		if (!tex->LoadFromFile(id))
		{
			std::cout << "[WARN] ImageManager failed to load " << id << std::endl;
			delete tex;
			tex = NULL;
		}

		return tex;
	}
}
